package org.jeecg.glr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Description: 路灯灯杆管绑定的设备
 * @Author: jeecg-boot
 * @Date:   2020-03-05
 * @Version: V1.0
 */
@Data
@TableName("glr_light_pole_device")
public class GlrLightPoleDevice implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**主键*/
	@TableId(type = IdType.UUID)
    private String id;
	/**路灯灯杆Code*/
	@Excel(name = "路灯灯杆Code", width = 15)
	private String lightPoleCode;
	/**项目编号*/
	@Excel(name = "项目编号", width = 15)
	private String projectCode;
	/**设备Id*/
	@Excel(name = "设备Id", width = 15)
    private String deviceId;
    /**设备类型*/
    @Excel(name = "设备类型", width = 15)
	@Dict(dicCode = "glr_device_type")
    private String deviceType;
	/**所属公司*/
	@Excel(name = "所属公司", width = 15)
    private String sysCompanyCode;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    private String createBy;
	/**创建日期*/
	@Excel(name = "创建日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    private String updateBy;
	/**更新日期*/
	@Excel(name = "更新日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
	/**所属部门*/
	@Excel(name = "所属部门", width = 15)
    private String sysOrgCode;


	/** 设备名称*/
	@Transient
	private transient String deviceName;
	/** 多选使用*/
	@Transient
	private transient String ids;

	/** 01音柱*/
	@TableField(exist = false)
	private GlrRadio device01Radio;

	/** 02LED屏*/
	@TableField(exist = false)
	private GlrLed device02Led;

	/** 03路灯*/
	@TableField(exist = false)
	private GlrLight device03Light;

	/** 04网关*/
	@TableField(exist = false)
	private GlrGateway device04Gateway;

	/** 05传感器*/
	@TableField(exist = false)
	private GlrSensor device05Sensor;

	/** 06摄像头*/
	@TableField(exist = false)
	private GlrVideo device06Video;
}
